package com.imooc.xunwu.repository;

import com.imooc.xunwu.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Auther: hyr
 * @Date: 2018/10/24 11:42
 * @Description:
 */
public interface RoleRepository extends JpaRepository<Role,Long> {
    List<Role> findRolesByUserId(Long userId);
}
